const { defineConfig } = require('@vue/cli-service')
// const { VantResolver } = require('@vant/auto-import-resolver');
// const ComponentsPlugin = require('unplugin-vue-components/webpack');

module.exports = defineConfig({
  transpileDependencies: true,
  devServer:{
    port:3010,
    open:true
  },
  lintOnSave:false,
  // configureWebpack: {
  //   plugins: [
  //     ComponentsPlugin({ resolvers: [VantResolver()] }), // 当 unplugin-vue-components 版本小于 0.26.0
  //     ComponentsPlugin.default({ resolvers: [VantResolver()] }), //当 unplugin-vue-components 版本大于等于 0.26.0
  //   ],
  // },
})
